package com.suyx.job.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import com.suyx.job.entity.Cy;
/**
 * @Auther: lanyanhua
 * @Date: 2018/10/18 0018 11:34
 * @Description:
*/
@Repository
public interface CyRepository extends JpaRepository<Cy,Integer> ,JpaSpecificationExecutor<Cy> {

	@Query(value = "select * from cy where cy.content LIKE CONCAT('%',:content,'%')",nativeQuery = true)
	List<Cy> findByContentLike(@Param("content") String content);
}
	